package com.atguigu.cmn.client.impl;

import com.atguigu.cmn.client.DictFeignClient;
import com.atguigu.yygh.common.result.Result;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;


@Service
public class DictFeignClientImpl implements DictFeignClient {

    private Logger log = LoggerFactory.getLogger(DictFeignClientImpl.class);


    @Override
    public String getName(String dictCode, String value) {
        log.info("调用{}失败", "getName--dictCode--value");
        Result<Object> result = new Result<>();
        result.setMessage("调用getName--dictCode--value接口失败");
        return result.getMessage();
    }

    @Override
    public String getName(String value) {
        log.info("调用{}失败", "getName--value");
        Result<Object> result = new Result<>();
        result.setMessage("调用getName--value接口失败");
        return result.getMessage();
    }
}
